import request from "./http";

// 获取歌曲url
export function getSongUrl(params) {
    return request({
        url: "/song/url",
        method: "get",
        params
    })
}

// 获取歌曲详情
// /song/detail?ids=347230
export function getSongDetail(params) {
    return request({
        url: "/song/detail",
        method: "get",
        params
    })

}

// 获取歌词
// /lyric?id=1811921555
export function getLyric(params) {
    return request({
        url: "/lyric",
        method: "get",
        params
    })

}

//收藏歌单
export function getPlaylistSubscribe({ t, id }) {
    return request({
        url: "/playlist/subscribe",
        method: "get",
        params: {
            t,
            id,
        }
    })

}

//歌曲评论
export function getCommentMusic(params) {
    return request({
        url: "/comment/music",
        method: "get",
        params
    })

}